Get

Function

This API contains control over the state of the privacy schema.

Request Message

Parameter Description

Table 1
ParameterRangeTypeDescription
channel"CH1"…"CHx",
"IP_CH1"…" IP_CHx",
"WIFI_CH1"…",WIFI_CHx",
The number of channels depends on the capabilities of the device.
stringThe channel name.

Sample:

POST /API/PreviewChannel/ControlBtn/Get HTTP/1.1
{
    "version":"1.0",
    "data":
    {
        "channel":"CH1"
    }
}

Response Message

Parameter Description

Table 2
ParameterRangeTypeDescription
channel"CH1"…"CHx",
"IP_CH1"…" IP_CHx",
"WIFI_CH1"…",WIFI_CHx",
The number of channels depends on the capabilities of the device.
stringThe channel name.
privacy_protectionboolPrivacy mode switch
operation_typeString

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "channel": "CH1",
        "privacy_protection": false,
        "operation_type": ""
    }
}

Error Code

See Response Messages Body and Common error_code for more information.